#include <QtGui/QApplication>
#include <QTranslator>
#include "pictureitem.h"
#include "loader.h"

Q_DECL_EXPORT int main(int argc, char *argv[])
{
    QScopedPointer<QApplication> app(createApplication(argc, argv));

    qmlRegisterType<PictureItem>("PictureItem", 1, 0, "PictureItem");

    QString locale = QLocale::system().name();    
    QTranslator translator;
    if(!translator.load("tr_"+locale,":/"))
        translator.load("tr_en",":/");
    app->installTranslator(&translator);
    Loader loader;

    return app->exec();
}
